'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller,io} = app;
  router.get('/', controller.home.index);
  router.post('/openSSH', controller.ssh.openSSH);
  //console.log("io.controller.console.chat:",io.controller.console)
  io.route('cmd',io.controller.ssh.receive);
  io.route('openSSH',io.controller.ssh.openSSH);
  io.route('hostname',io.controller.ssh.hostname);
};
